from flask import Flask
from flask_uploads import configure_uploads
from flask_uploads import UploadSet, IMAGES, ARCHIVES

photos = UploadSet('photos', tuple('jpg jpe jpeg png gif svg bmp webp zip'.split()))


def init_upload(app: Flask):
    configure_uploads(app, photos)
